|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectOJS.Midi.MidiIoController
public class MidiIoController
Constructor Summary | |
---|---|
MidiIoController()
Two transmitters are used to transmit input messages to output device and network buffer, respectively. |
Method Summary | |
---|---|
void |
close()
|
static void |
listDevices()
Enumerate all the midi devices and print to console. |
void |
noteTest()
Send a note on and a note off messages to the output device. |
void |
play(javax.sound.midi.ShortMessage message,
long t)
Send a message to output device. |
void |
send(javax.sound.midi.MidiMessage message,
long t)
Send the midi message to the network buffer. |
void |
sendSnapShot(MidiSnapShot s)
Send all the notes in a MidiSnapShot to output device with their delay values |
void |
setNetwork(Network n)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MidiIoController()
Method Detail |
---|
public void noteTest()
public static void listDevices()
public void sendSnapShot(MidiSnapShot s)
s
- - MidiSnapShot data, stores notes and their delayspublic void play(javax.sound.midi.ShortMessage message, long t)
-
- message to be sentt
- - delay in miliseconds before the message is executedpublic void setNetwork(Network n)
n
- - network object to receiver messagespublic void close()
close
in interface javax.sound.midi.Receiver
public void send(javax.sound.midi.MidiMessage message, long t)
send
in interface javax.sound.midi.Receiver
Receiver.send(javax.sound.midi.MidiMessage, long)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |